import { create } from 'zustand';
import { persist } from 'zustand/middleware';

interface UIStore {
  currentView: 'services' | 'chat';
  setCurrentView: (view: 'services' | 'chat') => void;
}

export const useUIStore = create<UIStore>()(
  persist(
    (set) => ({
      currentView: 'services',
      setCurrentView: (view) => set({ currentView: view }),
    }),
    {
      name: 'ui-storage',
    }
  )
);